package com.jhclothing.product.domain;

import com.jhclothing.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jhclothing.common.annotation.Excel;

import java.math.BigDecimal;

/**
 * 布料对象 fabric
 *
 * @author zyp
 * @date 2024-04-20
 */
public class Fabric extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 布料ID
     */
    private Long fabricId;

    /**
     * 布料编码
     */
    @Excel(name = "布料编码", sort = 1)
    private String fabricCode;

    /**
     * 布料名称
     */
    @Excel(name = "布料名称", sort = 2)
    private String fabricName;

    /**
     * 布料图片路径
     */
    @Excel(name = "布料图片路径", sort = 3, width = 50)
    private String fabricImagePath;

    /**
     * 当前库存(单位：平方米)
     */
    @Excel(name = "当前库存（单位：平方米）", sort = 4, width = 30)
    private BigDecimal nowInventory;

    /**
     * 库存告警数值(单位：平方米)
     */
    private BigDecimal alertLessThanCount;

    /**
     * 布料厂商名称
     */
    @Excel(name = "布料厂商名称", sort = 5, width = 30)
    private String fabricManufacturer;

    /**
     * 布料编码和名称
     */
    private String fabricCodeAndName;

    public void setFabricId(Long fabricId) {
        this.fabricId = fabricId;
    }

    public Long getFabricId() {
        return fabricId;
    }

    public void setFabricCode(String fabricCode) {
        this.fabricCode = fabricCode;
    }

    public String getFabricCode() {
        return fabricCode;
    }

    public void setFabricName(String fabricName) {
        this.fabricName = fabricName;
    }

    public String getFabricName() {
        return fabricName;
    }

    public void setFabricImagePath(String fabricImagePath) {
        this.fabricImagePath = fabricImagePath;
    }

    public String getFabricImagePath() {
        return fabricImagePath;
    }

    public void setNowInventory(BigDecimal nowInventory) {
        this.nowInventory = nowInventory;
    }

    public BigDecimal getNowInventory() {
        return nowInventory;
    }

    public void setAlertLessThanCount(BigDecimal alertLessThanCount) {
        this.alertLessThanCount = alertLessThanCount;
    }

    public BigDecimal getAlertLessThanCount() {
        return alertLessThanCount;
    }

    public void setFabricManufacturer(String fabricManufacturer) {
        this.fabricManufacturer = fabricManufacturer;
    }

    public String getFabricManufacturer() {
        return fabricManufacturer;
    }

    public String getFabricCodeAndName() {
        return fabricCodeAndName;
    }

    public void setFabricCodeAndName(String fabricCodeAndName) {
        this.fabricCodeAndName = fabricCodeAndName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("fabricId", getFabricId())
                .append("fabricCode", getFabricCode())
                .append("fabricName", getFabricName())
                .append("fabricImagePath", getFabricImagePath())
                .append("nowInventory", getNowInventory())
                .append("alertLessThanCount", getAlertLessThanCount())
                .append("fabricManufacturer", getFabricManufacturer())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
